Optimal. Leaf size=740 \[ \frac {\sqrt {a+b} (c-d) \sqrt {c+d} (b c+5 a d) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{4 d (b c-a d) f}+\frac {\sqrt {c+d} \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right ) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{4 b \sqrt {a+b} d^2 f}-\frac {b (b c+5 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {(a+b)^{3/2} (3 a d+b (c+2 d)) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{4 b d \sqrt {c+d} f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.47, antiderivative size = 740, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {2900, 3140,
3132, 2890, 3077, 2897, 3075} \begin {gather*} \frac {\sqrt {c+d} \left (3 a^2 d^2+6 a b c d-\left (b^2 \left (c^2-4 d^2\right )\right )\right ) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {b (c+d)}{(a+b) d};\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{4 b d^2 f \sqrt {a+b}}+\frac {(a+b)^{3/2} (3 a d+b (c+2 d)) \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\text {ArcSin}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{4 b d f \sqrt {c+d}}+\frac {\sqrt {a+b} (c-d) \sqrt {c+d} (5 a d+b c) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{4 d f (b c-a d)}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}-\frac {b (5 a d+b c) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2890
Rule 2897
Rule 2900
Rule 3075
Rule 3077
Rule 3132
Rule 3140
Rubi steps
\begin {align*} \int (a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)} \, dx &=-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {\int \frac {\frac {1}{2} d \left (4 a^2 c+b^2 c+a b d\right )+d \left (3 a b c+2 a^2 d+b^2 d\right ) \sin (e+f x)+\frac {1}{2} b d (b c+5 a d) \sin ^2(e+f x)}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{2 d}\\ &=-\frac {b (b c+5 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {\int \frac {-\frac {1}{2} d \left (b^3 c^2-8 a^3 c d+2 a b^2 c d-7 a^2 b d^2\right )+d \left (5 a^2 b c d+b^3 c d+4 a^3 d^2-a b^2 \left (c^2-3 d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b d \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right ) \sin ^2(e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{4 d^2}\\ &=-\frac {b (b c+5 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {\int \frac {-\frac {1}{2} b^2 d \left (b^3 c^2-8 a^3 c d+2 a b^2 c d-7 a^2 b d^2\right )-\frac {1}{2} a^2 b d \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right )+b \left (-a b d \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right )+b d \left (5 a^2 b c d+b^3 c d+4 a^3 d^2-a b^2 \left (c^2-3 d^2\right )\right )\right ) \sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{4 b^2 d^2}+\frac {1}{8} \left (6 a c-\frac {b c^2}{d}+\frac {3 a^2 d}{b}+4 b d\right ) \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx\\ &=\frac {\sqrt {c+d} \left (6 a c-\frac {b c^2}{d}+\frac {3 a^2 d}{b}+4 b d\right ) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{4 \sqrt {a+b} d f}-\frac {b (b c+5 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}-\frac {((a+b) (b c-a d) (b c+5 a d)) \int \frac {1+\sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{8 d}--\frac {\left (-\frac {1}{2} b^2 d \left (b^3 c^2-8 a^3 c d+2 a b^2 c d-7 a^2 b d^2\right )-\frac {1}{2} a^2 b d \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right )-b \left (-a b d \left (6 a b c d+3 a^2 d^2-b^2 \left (c^2-4 d^2\right )\right )+b d \left (5 a^2 b c d+b^3 c d+4 a^3 d^2-a b^2 \left (c^2-3 d^2\right )\right )\right )\right ) \int \frac {1}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{4 (a-b) b^2 d^2}\\ &=\frac {\sqrt {a+b} (c-d) \sqrt {c+d} (b c+5 a d) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{4 d (b c-a d) f}+\frac {\sqrt {c+d} \left (6 a c-\frac {b c^2}{d}+\frac {3 a^2 d}{b}+4 b d\right ) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{4 \sqrt {a+b} d f}-\frac {b (b c+5 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d f \sqrt {a+b \sin (e+f x)}}-\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {(a+b)^{3/2} (3 a d+b (c+2 d)) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{4 b d \sqrt {c+d} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1879\) vs. \(2(740)=1480\).
time = 9.01, size = 1879, normalized size = 2.54 \begin {gather*} -\frac {b \cos (e+f x) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 f}+\frac {-\frac {4 (-b c+a d) \left (8 a^2 c+3 b^2 c+7 a b d\right ) \sqrt {\frac {(c+d) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-c+d}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{\sqrt {2}}\right )|\frac {2 (-b c+a d)}{(a+b) (-c+d)}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {\frac {(c+d) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{-b c+a d}} \sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{(a+b) (c+d) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}-4 (-b c+a d) \left (12 a b c+8 a^2 d+4 b^2 d\right ) \left (\frac {\sqrt {\frac {(c+d) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-c+d}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{\sqrt {2}}\right )|\frac {2 (-b c+a d)}{(a+b) (-c+d)}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {\frac {(c+d) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{-b c+a d}} \sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{(a+b) (c+d) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}-\frac {\sqrt {\frac {(c+d) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-c+d}} \Pi \left (\frac {-b c+a d}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{\sqrt {2}}\right )|\frac {2 (-b c+a d)}{(a+b) (-c+d)}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {\frac {(c+d) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{-b c+a d}} \sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{(a+b) d \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )+2 \left (-b^2 c-5 a b d\right ) \left (\frac {\cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d \sqrt {a+b \sin (e+f x)}}+\frac {\sqrt {\frac {a-b}{a+b}} (a+b) \cos \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) E\left (\sin ^{-1}\left (\frac {\sqrt {\frac {a-b}{a+b}} \sin \left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{\sqrt {\frac {a+b \sin (e+f x)}{a+b}}}\right )|\frac {2 (-b c+a d)}{(a-b) (c+d)}\right ) \sqrt {c+d \sin (e+f x)}}{b d \sqrt {\frac {(a+b) \cos ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{a+b \sin (e+f x)}} \sqrt {a+b \sin (e+f x)} \sqrt {\frac {a+b \sin (e+f x)}{a+b}} \sqrt {\frac {(a+b) (c+d \sin (e+f x))}{(c+d) (a+b \sin (e+f x))}}}-\frac {2 (-b c+a d) \left (\frac {((a+b) c+a d) \sqrt {\frac {(c+d) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-c+d}} F\left (\sin ^{-1}\left (\frac {\sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{\sqrt {2}}\right )|\frac {2 (-b c+a d)}{(a+b) (-c+d)}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {\frac {(c+d) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{-b c+a d}} \sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{(a+b) (c+d) \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}-\frac {(b c+a d) \sqrt {\frac {(c+d) \cot ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right )}{-c+d}} \Pi \left (\frac {-b c+a d}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{\sqrt {2}}\right )|\frac {2 (-b c+a d)}{(a+b) (-c+d)}\right ) \sec (e+f x) \sin ^4\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) \sqrt {\frac {(c+d) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (a+b \sin (e+f x))}{-b c+a d}} \sqrt {\frac {(-a-b) \csc ^2\left (\frac {1}{2} \left (-e+\frac {\pi }{2}-f x\right )\right ) (c+d \sin (e+f x))}{-b c+a d}}}{(a+b) d \sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{b d}\right )}{8 f} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 15.30, size = 277278, normalized size = 374.70
method | result | size |
default | \(\text {Expression too large to display}\) | \(277278\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sin {\left (e + f x \right )}\right )^{\frac {3}{2}} \sqrt {c + d \sin {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+b\,\sin \left (e+f\,x\right )\right )}^{3/2}\,\sqrt {c+d\,\sin \left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________